package JAVA300.第七章数组;

import java.util.Arrays;

/*
测试数组存table
 */
public class TestArrayTable {
    public static void main(String[] args) {
        Object[] obj1 = {1001,"h1",18,"teacher","2020-9-1"};
        Object[] obj2 = {1002,"h2",19,"teacher","2020-9-1"};
        Object[] obj3 = {1003,"h3",15,"teacher","2020-9-1"};

        Object[][] table = new Object[3][];
        table[0] = obj1;
        table[1] = obj2;
        table[2] = obj3;



        for(Object[] temp:table){//增强for循环 数组遍历
            System.out.println(Arrays.toString(temp));
        }
    }
}
